package com.zking.service;

import com.zking.pojo.Book;
import com.zking.pojo.Page;

import java.util.List;

public interface BookService {

    boolean add(Book book);
    boolean update(Book book);
    boolean delete(Integer id);
    Book getById(Integer id);
    List<Book> getAll();

   // List<Book> selectBywhere(String name,Integer currentPage,Integer pageSize);

    List<Book> selectBywhere(Book book, Page page);
}
